import Message from './message'
import Dialog from './dialog'
import Button from './button'
import Checkbox from './checkbox'
import CheckboxGroup from './checkboxGroup'
import Form from './form'
import FormItem from './formItem'
import Radio from './radio'
import RadioGroup from './radioGroup'
import Input from './input'

const components = [
  Message,
  Dialog,
  Button,
  Checkbox,
  CheckboxGroup,
  Form,
  FormItem,
  Radio,
  RadioGroup,
  Input
]

const install = function (Vue) {
  if (install.installed) return
  components.forEach(component => Vue.use(component))
}


export default {
  install
}